<!DOCTYPE html>
<html  xmlns:th="http://www.thymeleaf.org"
       xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head th:include="layout :: htmlhead" th:with="title='order管理'"></head>
<body class="layui-layout-body">
<div class="layui-layout layui-layout-admin">
    <!--头-->
    <div th:replace="fragments/head :: header"></div>

    <div class="layui-body" style="margin: 1%">

        <form id="userInfoSearch" class="layui-form layui-form-pane" method="post" action="" style="margin-top: 20px;">
            <div class="layui-form-item">
                <label class="layui-form-label">用户编号</label>
                <div class="layui-input-inline">
                    <input id="buyerOpenid" name="buyerOpenid" autocomplete="off" class="layui-input" type="text"/>
                </div>
                <label class="layui-form-label">性别</label>
                <div class="layui-input-inline">
                    <select name="userSex"  id="userSex" >
                        <option value="">请选择...</option>
                        <option value='1'>男</option>
                        <option value='2'>女</option>
                    </select>
                </div>
                <label class="layui-form-label">省份</label>
                <div class="layui-input-inline">
                    <input id="userProvince" name="userProvince" autocomplete="off" class="layui-input" type="text"/>
                </div>
                <label class="layui-form-label">城市</label>
                <div class="layui-input-inline">
                    <input id="userCity" name="userCity" autocomplete="off" class="layui-input" type="text"/>
                </div>

            </div>
            <div class="layui-form-item">
                <div class="layui-inline">
                    <!--<label class="layui-form-label">用户电话</label>
                    <div class="layui-input-inline">
                        <input id="userPhone" name="userPhone" autocomplete="off" class="layui-input" type="text"/>
                    </div>-->
                    <label class="layui-form-label">师傅编号</label>
                    <div class="layui-input-inline">
                        <input id="workerId" name="workerId" autocomplete="off" class="layui-input" type="text"/>
                    </div>

                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                    <button class="layui-btn"  lay-submit="" lay-filter="searchSubmit">提交</button>
                </div>
            </div>
        </form>

        <!--<hr class="layui-bg-blue"/>-->
        <hr class="layui-bg-black"/>


        <table id="userInfoList" lay-filter="userInfoTable"></table>

        <script type="text/html" id="optBar">
            <a class="layui-btn layui-btn-xs" lay-event="see">查看</a>
            {{#  if(d.userInfoLabel == '1'){ }}
            <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="recover">恢复</a>
            {{#  } else { }}
            <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del">删除</a>
            {{#  } }}
        </script>
        <script type="text/html" id="isCraftsMan">
            {{#  if(d.isWorker==0{ }}
            <a class="layui-btn layui-btn-xs" lay-event="watch">师傅信息</a>
            {{#  }  }}
        </script>

    </div>






    <div id="getUserInfo"  style="width:100%;display:none;">
        <fieldset   class="layui-elem-field layui-field-title" style="margin-top: 10px; ">
            <legend>详细信息</legend>	<br/><br/>
            <div style="border:0px solid #F00;margin:0 10% 0;">

                <form class="layui-form" action="" method="post">

                    <table >
                        <tr>
                            <td width="70%">
                                <div class="layui-form-item" >
                                    <label class="layui-form-label" style="text-align:left;">用户编号</label>
                                    <div class="layui-input-block" >
                                        <input type="text" id="buyerOpenid0" name="buyerOpenid" style="width:350px;" autocomplete="off"  value="" class="layui-input" disabled="disabled">
                                    </div>
                                </div>
                            </td>

                            <td>
                                <div class="layui-form-item">
                                    <label class="layui-form-label" style="text-align:left;">用户昵称</label>
                                    <div class="layui-input-block">
                                        <input type="text" id="userNickname" name="userNickname" style="width:350px;" autocomplete="off" value="" class="layui-input" disabled="disabled">
                                    </div>
                                </div>
                            </td>
                        </tr>

                        <tr>
                            <td>
                                <div class="layui-form-item">
                                    <label class="layui-form-label" style="text-align:left;">性别</label>
                                    <div class="layui-input-block">
                                        <input type="text" id="userSex0" name="userSex" style="width:350px;"  autocomplete="off" value="" class="layui-input" disabled="disabled">
                                    </div>
                                </div>
                            </td>


                            <td>
                                <div class="layui-form-item">
                                    <label class="layui-form-label" style="text-align:left;">所在省份</label>
                                    <div class="layui-input-block">
                                        <input type="text" id="userProvince0" name="userProvince" style="width:350px;"  autocomplete="off" value="" class="layui-input" disabled="disabled">
                                    </div>
                                </div>
                            </td>
                        </tr>

                        <tr>


                            <td>
                                <div class="layui-form-item">
                                    <label class="layui-form-label" style="text-align:left;">所在城市</label>
                                    <div class="layui-input-block">
                                        <input type="text" id="userCity0" name="userCity" style="width:350px;"  autocomplete="off" value="" class="layui-input" disabled="disabled">
                                    </div>
                                </div>
                            </td>


                        </tr>

                        <!--<tr>
                            <td>
                                <div class="layui-form-item">
                                    <label class="layui-form-label" style="text-align:left;">联系电话</label>
                                    <div class="layui-input-block">
                                        <input type="text" id="userPhone0" name="userPhone" style="width:350px;" autocomplete="off" value="" class="layui-input" disabled="disabled">
                                    </div>
                                </div>
                            </td>


                        </tr>-->


                        <tr>
                            <td>
                                <div class="layui-form-item">
                                    <label class="layui-form-label" style="text-align:left;">创建时间</label>
                                    <div class="layui-input-block">
                                        <input type="text" id="createTime4" name="createTime4" style="width:350px;" autocomplete="off" value="" class="layui-input" disabled="disabled">
                                    </div>
                                </div>
                            </td>

                            <td>
                                <div class="layui-form-item">
                                    <label class="layui-form-label" style="text-align:left;">更新时间</label>
                                    <div class="layui-input-block">
                                        <input type="text" id="updateTime4" name="updateTime4" style="width:350px;" autocomplete="off" value="" class="layui-input" disabled="disabled">
                                    </div>
                                </div>
                            </td>
                        </tr>
                    </table>

                </form>
            </div>
        </fieldset>
        <fieldset   class="layui-elem-field layui-field-title" style="margin-top: 10px; ">
            <legend>地址信息</legend>	<br/>
            <div style="border:0px solid #F00;margin:0 10% 0;">
                <table id="userAddressList" lay-filter="userAddressTable"></table>
            </div>
        </fieldset>
        <fieldset   class="layui-elem-field layui-field-title" style="margin-top: 10px; ">
            <legend>师傅信息修改记录</legend>	<br/>
            <div style="border:0px solid #F00;margin:0 10% 0;">
                <table id="workerInfo" lay-filter="workerInfoTable"></table>
            </div>

            <script type="text/html" id="optBar0">
                <a class="layui-btn layui-btn-xs" lay-event="edit0">编辑</a>
                {{#  if(d.isAllowed == '1'){ }}
                <a class="layui-btn layui-btn-normal layui-btn-xs" lay-event="recover0">恢复</a>
                {{#  } else { }}
                <a class="layui-btn layui-btn-danger layui-btn-xs" lay-event="del0">删除</a>
                {{#  } }}
            </script>
        </fieldset>

    </div>

    <!--编辑-->
    <div id="setWorker" class="layer_self_wrap" style="width:500px;display:none;">
        <form id="workerForm" class="layui-form layui-form-pane" method="post" action="" style="margin-top: 20px;">
            <input id="pageNum" type="hidden" name="pageNum"/>
            <input id="id" type="hidden" name="id"/>

            <div class="layui-form-item">
                <label class="layui-form-label">用户得分</label>
                <div class="layui-input-inline">
                    <input id="score" name="score" onkeyup="value=value.replace(/^(0+)|[^\d.]+/g,'')" lay-verify="required" autocomplete="off" class="layui-input" type="text"/>
                </div>
            </div>
            <div class="layui-form-item">
                <div class="layui-input-block" style="margin-left: 10px;">
                    <button class="layui-btn"  lay-submit="" lay-filter="workerSubmit" id="submit" >提交</button>
                    <button type="reset" class="layui-btn layui-btn-primary">重置</button>
                </div>
            </div>
        </form>
    </div>


    <!--底部-->
    <div th:replace="fragments/footer :: footer"></div>

    <script src="/js/userInfo/userInfoList.js"></script>

</div>
</body>
</html>